<style scoped>
  .confirm {
    position: fixed;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: rgba(000, 000, 000, .3);
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }

  .confirm-wrap {
    background-color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 66;
    font-size: .75rem;/*px*/
    text-align: center;
    box-sizing: border-box;
    border-radius: .125rem;
    line-height: 1rem;
  }

  .confirm-info {
    border-bottom: 1px solid #ccc;/*no*/
    padding:  1rem;
    min-width: 10rem;
    max-width: 11.5rem;
  }

  .confirm-btn>div{
    width: 50%;
    color: #0094db;
    box-sizing: border-box;
    line-height: 2.25rem;
  }

  .confirm-btnL {
    float: left;
    border-right: 1px solid #ccc;/*no*/
  }

  .confirm-btnR {
    float: right;
    border-left: 1px solid #ccc;/*no*/
  }


</style>

<template>
  <div class="confirm">
    <div class="confirm-wrap">
      <div class="confirm-info">
        <div>{{confirmInfo}}</div>
      </div>
      <div class="confirm-btn fix">
        <div class="confirm-btnL" @click="confirmBtnL">
          {{confirmInfoL}}
        </div>
        <div class="confirm-btnR" @click="confirmBtnR">
          {{confirmInfoR}}
        </div>
      </div>
    </div>
  </div>
</template>





<script>

  export default{
    props: {
      confirmInfoL: {default:'取消'},
      confirmInfoR: {default:'确认'},
      confirmInfo:{},
    },
    data(){
      return {
//        confirmBtnL: '取消',
//        confirmBtnR: '确认'
      }
    },
    methods: {
      confirmBtnL() {
        this.$emit('confirmBtnL');
      },
      confirmBtnR() {
        this.$emit('confirmBtnR');
      },
    }
  }

</script>
